package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String str="ada2356737dajkdhka8789jhbdaj7898hdsbaj";
        String[]array=str.split("[0-9]+");
        System.out.println(Arrays.toString(array));


        //连续出现可拆分项时，之间会拆分出一个空字符串,末尾拆分出的字符串会忽略
        str="==dsad===asd===dsa==da=da==";
        array=str.split("=");
        System.out.println(Arrays.toString(array));


    }
}
